class newsmodel{
  final String id;
  final int state;
  final String title;
  final String title1;
  final String time;

  newsmodel( {this.title, this.title1, this.id, this.state, this.time,});


  factory newsmodel.fromJson(Map<String,dynamic> json){
    return newsmodel(
      id: json['id'],
      state: json['state'],
      title: json['title'],
      title1: json['title1'],
      time: json['time']
    );
  }

   Map<String,dynamic> toJson()=>{
      'id':id,
     'state':state,
      'title':title,
     'title1':title1,
     'time':time
   };
}